package com.moon.moonclientsdk.util;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * 签名生成工具类
 */
public class SignUtil {

    public static String getSign(String body, String secretKey) {
        Digester md5=new Digester(DigestAlgorithm.SHA256);
        String content = body + '.' + secretKey;
        String sign = md5.digestHex(content);
        return sign;
    }
}
